package com.tmxk.days01.szk;

import java.util.Scanner;

public class ManagementTest {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        Management m = new Management();
        System.out.println("请输入用户名: ");
        String name = sc.next();
        System.out.println("请输入原始密码: ");
        String password = sc.next();
        if(m.name.equals(name)&&m.password.equals(password)){
            m.changePassword();
        }else{
            System.out.println("用户或密码输入错误,不能修改");
        }
    }
}
